import { Component, OnInit } from '@angular/core';

@Component({
    selector: 'app-event-bind',
    templateUrl: './event-bind.component.html',
    styleUrls: ['./event-bind.component.less']
})
export class EventBindComponent implements OnInit {

    info: string = "字符串";
    arr: Array<any> = [1, "asda", false];

    constructor() { }

    ngOnInit() {
    }

    printFun() {
        console.log("printFun方法");
    }
    showFun() {
        console.log("showFun方法");
    }
    argFun(arg1, arg2?, arg3?) {
        console.log(arg1, arg2, arg3);
    }
    thisFun(e) {
        console.log(e);
    }
}
